package app.android.alampang.loader;

import android.content.Context;
import android.graphics.Typeface;
import android.widget.TextView;

/**
 * Created by Supanut on 1/17/2015.
 */
public class FontLoader
{
    public static final int DSN_SUKUMWIT = 0;
    public static final int TH_KRUB = 1;

    private static String fontPath[] = {
            "fonts/dsn_sukumwit.ttf",
            "fonts/th_krub.ttf"
    };

    public static Typeface getFont(Context context, int fontStyle)
    {
        Typeface tf = Typeface.createFromAsset(context.getAssets(), fontPath[fontStyle]);
        return tf;
    }


}
